tools/libxl: Simplify callback handling in libxl-save-helper
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 2 Jan 2020 19:06:54 +0000 (19:06 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 27 Feb 2020 18:56:24 +0000 (18:56 +0000)
commitfedd1f6f4115bc5f1695ad0be1719532f31d74de
tree5822e6238c6e94da0bb64f0bfceee6dbb60830ea
parent83b3873822a5f27c45bfdaa5a7d03f4c495e4234
tools/libxl: Simplify callback handling in libxl-save-helper

The {save,restore}_callback helpers can have their scope reduced vastly, and
helper_setcallbacks_{save,restore}() doesn't need to use a ternary operator to
write 0 (meaning NULL) into an already zeroed structure.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_save_helper.c
tools/libxl/libxl_save_msgs_gen.pl